﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class HistoryBillSummary
    {
        #region 属性
        private int _billId;
        private string _tableName;
        private string _tableProperty;
        private string _tableCategory;
        private DateTime _billTime;
        private int _headCount;
        private float _totalPrice;
        private int _discount;
        private float _pay;
        private string _waiter;
        private float _serviceTips;
        private string _checkOutMode;
        #endregion

        #region 构造
        public HistoryBillSummary()
        {
            _billId = 0;
            _tableName = null;
            _tableProperty = null;
            _tableCategory = null;
            _billTime = DateTime.Now;
            _headCount = 0;
            _totalPrice = 0;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId)
        {
            _billId = billId;
            _tableName = null;
            _tableProperty = null;
            _tableCategory = null;
            _billTime = DateTime.Now;
            _headCount = 0;
            _totalPrice = 0;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = null;
            _tableCategory = null;
            _billTime = DateTime.Now;
            _headCount = 0;
            _totalPrice = 0;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string  tableProperty)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = null;
            _billTime = DateTime.Now;
            _headCount = 0;
            _totalPrice = 0;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = DateTime.Now;
            _headCount = 0;
            _totalPrice = 0;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory,DateTime billTime)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = 0;
            _totalPrice = 0;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory, DateTime billTime, int headCount)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = headCount;
            _totalPrice = 0;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory, DateTime billTime, int headCount, int totalPrice)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = headCount;
            _totalPrice = totalPrice;
            _discount = 0;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory, DateTime billTime, int headCount, int totalPrice, int discount)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = headCount;
            _totalPrice = totalPrice;
            _discount = discount;
            _pay = 0;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory, DateTime billTime, int headCount, int totalPrice, int discount, int pay)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = headCount;
            _totalPrice = totalPrice;
            _discount = discount;
            _pay = pay;
            _waiter = null;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory, DateTime billTime, int headCount, int totalPrice, int discount, int pay, string waiter)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = headCount;
            _totalPrice = totalPrice;
            _discount = discount;
            _pay = pay;
            _waiter = waiter;
            _serviceTips = 0;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory, DateTime billTime, int headCount, int totalPrice, int discount, int pay, string waiter, int serviceTips)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = headCount;
            _totalPrice = totalPrice;
            _discount = discount;
            _pay = pay;
            _waiter = waiter;
            _serviceTips = serviceTips;
            _checkOutMode = null;
        }

        public HistoryBillSummary(int billId, string tableName, string tableProperty, string tableCategory, DateTime billTime, int headCount, int totalPrice, int discount, int pay, string waiter, int serviceTips, string checkOutMode)
        {
            _billId = billId;
            _tableName = tableName;
            _tableProperty = tableProperty;
            _tableCategory = tableCategory;
            _billTime = billTime;
            _headCount = headCount;
            _totalPrice = totalPrice;
            _discount = discount;
            _pay = pay;
            _waiter = waiter;
            _serviceTips = serviceTips;
            _checkOutMode = checkOutMode;
        }
        #endregion

        public int BillId
        {
            get { return _billId; }
            set { _billId = value; }
        }

        public string  tableName
        {
            get { return _tableName; }
            set { _tableName = value; }
        }

        public string  TableProperty
        {
            get { return _tableProperty; }
            set { _tableProperty = value; }
        }

        public string  TableCategory
        {
            get { return _tableCategory; }
            set { _tableCategory = value; }
        }

        public DateTime BillTime
        {
            get { return _billTime; }
            set { _billTime = value; }
        }

        public int HeadCount
        {
            get { return _headCount ; }
            set { _headCount = value; }
        }

        public float TotalPrice
        {
            get { return _totalPrice; }
            set { _totalPrice = value; }
        }

        public int discount
        {
            get { return _discount; }
            set { _discount = value; }
        }

        public float Pay
        {
            get { return _pay; }
            set { _pay = value; }
        }

        public string  Waiter
        {
            get { return _waiter; }
            set { _waiter = value; }
        }

        public float ServiceTips
        {
            get { return _serviceTips; }
            set { _serviceTips = value; }
        }

        public string  CheckOutMode
        {
            get { return _checkOutMode; }
            set { _checkOutMode = value; }
        }

        
    }
}
